package com.ali.item.service.impl;

import com.ali.item.entity.ItemCategory;
import com.ali.item.repository.ItemCategoryRepository;
import com.ali.item.service.CategoryService;
import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName CategoryServiceImpl
 * @Description TODO
 * @Author Alistair.Chow
 * @date 2018/12/14 16:02
 * @Version 1.0
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private ItemCategoryRepository itemCategoryRepository;

    @Override
    public List<ItemCategory> findAllByIdIn(List<Integer> idList) {
        return itemCategoryRepository.findAllByIdIn(idList);
    }
}
